package com.iot.manage.api.feign;

import com.iot.manage.api.domain.SysLog;
import com.iot.manage.api.feign.factory.RemoteLogServiceFallbackFactory;
import com.iot.common.core.constant.ServiceNameConstants;
import com.iot.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "remoteLogService", value = ServiceNameConstants.MANAGE_SERVICE,
		fallbackFactory = RemoteLogServiceFallbackFactory.class)
public interface RemoteLogService {

	/**
	 * 保存日志
	 */
	@PostMapping("/log")
	R<Boolean> saveLog(@RequestBody SysLog sysLog);

}
